home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / private / _clrscr.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  882 b   |  38 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3.  
  4. #ifdef PDCDEBUG
  5. char *rcsid__clrscr = "$Header: C:\CURSES\private\RCS\_clrscr.c 2.1 1993/06/18 20:23:15 MH Rel MH $";
  6. #endif
  7.  
  8.  
  9.  
  10.  
  11. /*man-start*********************************************************************
  12.  
  13.   PDC_clr_scrn()    - Clears the physical screen and homes the cursor.
  14.  
  15.   PDCurses Description:
  16.      This is an internal routine called by the doupdate() routines.
  17.  
  18.   PDCurses Return Value:
  19.      This routine always returns OK.
  20.  
  21.   Portability:
  22.      PDCurses    int PDC_clr_scrn( WINDOW* win );
  23.  
  24. **man-end**********************************************************************/
  25.  
  26. int    PDC_clr_scrn(WINDOW *win)
  27. {
  28.     chtype    attrs = win->_attrs;
  29.  
  30. #ifdef PDCDEBUG
  31.     if (trace_on) PDC_debug("PDC_clr_scrn() - called\n");
  32. #endif
  33.  
  34.     PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
  35.     PDC_gotoxy(0, 0);
  36.     return( OK );
  37. }
  38.